package Operation;

import Book.BookDao;
import Book.book;

import java.util.List;

public class ShowOperation implements IOperation{
    @Override
    public void work() {
        System.out.println ("展现所有书籍");
        BookDao bookDao=new BookDao();
        List<book> books=bookDao.selectAll ();
        for (book book:books) {
            System.out.println (book);
        }
        System.out.println ("这就是所有书了");
    }
}
